export const functionList = [
    // 文件操作
    {
        name: 'loadXLG',
        explain: '加载xlg文件',
        example: 'loadXLG(文件路径, 用户id【非必填,不填默认本用户】)',
        instance: 'loadXLG()'
    },
    {
        name: 'queryDataView',
        explain: '得到DS文件内容',
        example: 'queryDataView(dataSetName, dataSetParams)',
        instance: 'queryDataView()'

    },
    {
        name: 'openXLG',
        explain: '打开xlg文件',
        example: 'openXLG()',
        instance: 'openXLG()'
    },
    {
        name: 'exportXLSX',
        explain: '导出下载xlsx文件',
        example: 'exportXLSX()',
        instance: 'exportXLSX()'
    },
    {
        name: 'saveXLG',
        explain: '存储XLG文件',
        example: 'saveXLG(xlg, 文件路径)',
        instance: 'saveXLG(xlg, "")'
    },
    // 表操作
    {
        name: 'getSheet',
        explain: '得到xlg文件的工作表',
        example: 'xlg.getSheet(下标/工作表名)',
        instance: 'xlg.getSheet()'
    },
    {
        name: 'insertRowAfter',
        explain: '在行之后新增行',
        example: 'sheet.insertRowAfter(行号, 增加行数)',
        instance: 'sheet.insertRowAfter()'
    },
    {
        name: 'insertRowBefore',
        explain: '在行之前新增行',
        example: 'sheet.insertRowBefore(行号, 增加行数)',
        instance: 'sheet.insertRowBefore()'
    },
    {
        name: 'copyRegion',
        explain: '复制并粘贴行',
        example: 'sheet.copyRegion(复制区域: "A1:F1", 粘贴区域: "A2:F3")',
        instance: 'sheet.copyRegion()'
    },
    {
        name: 'deleteRow',
        explain: '删除行',
        example: 'sheet.deleteRow(开始行, 结束行)',
        instance: 'sheet.deleteRow()'
    },
    {
        name: 'setCellValue',
        explain: '给单元格赋值',
        example: 'sheet.setCellValue([行号: 1, 列号: "A", 值] 或者 [单元格: "A1", 值])',
        instance: 'sheet.setCellValue()'
    },
    {
        name: 'fillDataComplex',
        explain: '根据ds的表数据,填充模板文件',
        example: 'sheet.fillDataComplex(ds类, 标题行区域, 模板行区域, 是否删除模板行, 数据插入起始行【非必填】)',
        instance: 'sheet.fillDataComplex()'
    },
    {
        name: 'setColumnWidth',
        explain: '设置列宽',
        example: 'sheet.setColumnWidth({1: 100, 1: 200})【列号可以是数字】 / sheet.setColumnWidth({a: 100, b: 200})【列号也可以是字母】)',
        instance: 'sheet.setColumnWidth()'
    },
    // ds操作
    {
        name: 'getDataTable',
        explain: '获取数据表',
        example: 'dataSet.getDataTable(下标)',
        instance: 'dataSet.getDataTable()'
    },
    {
        name: 'getDataRows',
        explain: '获取数据行',
        example: 'dataTable.getDataRows()',
        instance: 'dataTable.getDataRows()'
    },
    {
        name: 'getCellValue',
        explain: '获取某一项数据',
        example: 'dataRow.getCellValue(该列的表头名称)',
        instance: 'dataRow.getCellValue()'
    },
    // 时间操作
    {
        name: 'getBeginYearDay',
        explain: '获取该年第一天',
        example: 'getBeginYearDay(日期)',
        instance: 'getBeginYearDay()'
    },
    {
        name: 'getBeginMonthDay',
        explain: '获取该月第一天',
        example: 'getBeginMonthDay(日期)',
        instance: 'getBeginMonthDay()'
    },
    {
        name: 'getEndMonthDay',
        explain: '获取该月最后一天',
        example: 'getEndMonthDay(日期)',
        instance: 'getEndMonthDay()'
    },
    {
        name: 'formatDate',
        explain: '将日期格式化:"YYYY-MM-DD"',
        example: 'formatDate(日期)',
        instance: 'formatDate()'
    },
    // 发送消息
    {
        name: 'DingTalk.sendTextMsg',
        explain: '发送钉钉消息-信息',
        example: 'sendTextMsg(消息账户【String】, 消息内容【String】, 接收人【Array】)',
        instance: 'DingTalk.sendTextMsg()'
    },
    {
        name: 'DingTalk.sendTemplateMsg',
        explain: '发送钉钉消息-模板',
        example: 'sendTemplateMsg(消息账户【String】, 模板名称【String】, 模板参数【Object】, 接收人【Array】)',
        instance: 'DingTalk.sendTemplateMsg()'
    },
    {
        name: 'DingTalk.sendImageMsg',
        explain: '发送钉钉消息-图片',
        example: 'sendImageMsg(消息账户【String】, 图片路径【String】, 接收人【Array】)',
        instance: 'DingTalk.sendImageMsg()'
    },
    {
        name: 'DingTalk.sendFileMsg',
        explain: '发送钉钉消息-文件',
        example: 'sendFileMsg(消息账户【String】, 文件路径【String】, 接收人【Array】)',
        instance: 'DingTalk.sendFileMsg()'
    },
    {
        name: 'EmailMsg.sendMsg',
        explain: '发送邮件',
        example: 'sendMsg(消息账户【String】, 主题【String】, 正文【String】, 附件【Array】, 收件人【Array】, 抄送人【Array】)',
        instance: 'EmailMsg.sendMsg()'
    },
    {
        name: 'ShortMsg.sendMsg',
        explain: '发送短信',
        example: 'sendMsg(消息账户【String】, 消息内容【String】, 接收人【Array】)',
        instance: 'ShortMsg.sendMsg()'
    },
    {
        name: 'SysMsg.sendMsg',
        explain: '发送系统消息',
        example: 'sendMsg(消息账户【String】, 标题【String】, 内容【String】, 接收人【Array】)',
        instance: 'sysMsg.sendMsg()'
    },
    {
        name: 'VoiceMsg.sendMsg',
        explain: '发起语音电话',
        example: 'sendMsg(消息账户【String】, 模板参数【String】, 接收人【Array】)',
        instance: 'VoiceMsg.sendMsg()'
    },
    {
        name: 'Wechart.sendTextMsg',
        explain: '发送企业微信-消息',
        example: 'sendTextMsg(消息账户【String】, 消息内容【String】, 接收人【Array】)',
        instance: 'Wechart.sendTextMsg()'
    },
    {
        name: 'Wechart.sendTemplateMsg',
        explain: '发送企业微信-模板',
        example: 'sendTemplateMsg(消息账户【String】, 模板名称【String】, 模板参数【Object】, 接收人【Array】)',
        instance: 'Wechart.sendTemplateMsg()'
    },
    {
        name: 'Wechart.sendImageMsg',
        explain: '发送企业微信-图片',
        example: 'sendImageMsg(消息账户【String】, 图片路径【String】, 接收人【Array】)',
        instance: 'Wechart.sendImageMsg()'
    },
    {
        name: 'Wechart.sendFileMsg',
        explain: '发送企业微信-文件',
        example: 'sendFileMsg(消息账户【String】, 文件路径【String】, 接收人【Array】)',
        instance: 'Wechart.sendFileMsg()'
    },
]